/**
 * @Project RSLsXWG
 * @Author Tran Manh Hung
 * @Email: hungtmit@gmail.com | tmh@xwebgate.com
 * @Copyright © 2011 TMH. All rights reserved
 * @Createdate May 7, 2011
 * @Createtime 4:27:31 PM
 */

package com.xwg.cards.events
{
	import flash.events.Event;

	public class CardEvent extends Event
	{

		public static var CARD_INTERACTABLE_CHANGE:String = "cardInteractableChange";

		public static var CARD_REVEAL_CARD_CHANGE:String = "cardRevealCardChange";

		/**
		 * hgData contain:<br />
		 * value:int - value of card<br />
		 * suit:int - suit of card
		 */
		public static const CARD_VALUE_CHANGE:String = "cardValueChange";

		/**
		 * hgData contain:<br />
		 * onHand:Boolean
		 */
		public static const CARD_VISIBLE_CHANGE:String = "cardVisibleChange";

		public var hgData:Object;

		public function CardEvent(type:String, data:Object = null, bubbles:Boolean = false, cancelable:Boolean = false)
		{
			super(type, bubbles, cancelable);

			hgData = data;
		}

		override public function clone():Event
		{
			return new CardEvent(type, hgData, bubbles, cancelable);
		}
	}
}